<!--
 * @Author: C.
 * @Date: 2021-12-23 09:42:48
 * @LastEditTime: 2021-12-27 12:59:28
 * @Description: file content
-->
<template>
  <view>
    <u-navbar title="listDemo"> </u-navbar>
    <j-search :register="listObj"> </j-search>
    <j-list
      :register="listObj"
      @getMoreData="listObj.getMoreData"
      @onRefresh="listObj.onRefresh"
    >
      <BasicCard
        v-for="card in listObj.listData"
        :key="card.BillId"
        :cdata="card"
      >
      </BasicCard>
    </j-list>
  </view>
</template>

<script>
import { Jlist } from "./config";
import BasicCard from "@/components/BasicCard";
export default {
  components: {
    BasicCard
  },
  data() {
    return {
      listObj: {}
    };
  },
  created() {
    this.listObj = new Jlist();
    this.listObj.getData();
  },
  methods: {
    // 搜索页的页面回调 返回一个keyword
    searchCallBack(keyword) {
      console.log(keyword, 7777);
    }
  }
};
</script>

<style></style>
